﻿using System;
using System.Collections.Generic;
using CoreVirtuoso;
using CoreVirtuoso.Config;
using VDS.RDF;
using VirtuosoDal.Config;

namespace WebGuiMvc.Helpers.Properties
{
    public static class GeoLabelPropertiesParseHelper
    {
        public static void ParseProperties(Graph graph,
                                           Dictionary<string, INode> dictionary,
                                           string userName,
                                           string geoLabel, string cityUri, string cityName,
                                           string placeUri, string placeName)
        {
            dictionary[String.Format("{0}userName", Namespaces.EventsOntologyNamespace)] = graph.CreateLiteralNode(userName);
            dictionary[String.Format("{0}geoLabel", Namespaces.EventsOntologyNamespace)] = graph.CreateLiteralNode(geoLabel);
            dictionary[String.Format("{0}city", Namespaces.EventsOntologyNamespace)] = graph.CreateLiteralNode(cityUri);
            dictionary[String.Format("{0}cityName", Namespaces.EventsOntologyNamespace)] = graph.CreateLiteralNode(cityName);
            dictionary[String.Format("{0}place", Namespaces.EventsOntologyNamespace)] = graph.CreateLiteralNode(placeUri);
            dictionary[String.Format("{0}placeName", Namespaces.EventsOntologyNamespace)] = graph.CreateLiteralNode(placeName);
        }
    }
}